package com.shigu.account.enums;

/*
 * create by  过儿  2019-06-03
 *
 */
public enum UserType {
    KFWH(100, "开发维护"),
    ADMIN(99,"管理员"),
    XCX(1,"小程序"),
    APP(2,"app"),
    GZH(3,"公众号");


    public static UserType selByValue(int value) {
        for (UserType level : UserType.values()) {
            if (level.getValue() == value) {
                return level;
            }
        }
        return null;
    }

    UserType(int value, String title) {
        this.value = value;
        this.title = title;
    }

    private int value;
    private String title;

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
